<?php 
//include('../Connections/KRAPPERCON.php');

$sql= "call sp_getClaseCond();";
$res = $mysqli->query($sql) or die($mysqli->error.__LINE__);

	if ($res){
		if (trim($cond) != ''){			
			while($row = $res->fetch_assoc()){
				$sel = '';
				if ($row['idCond']==$cond) $sel='selected="selected"';
				echo "<option ".$sel." value='".$row['idCond']."'>".$row['txtCond']."</option>";	
			}		
		}
		else
		{
			while($row = $res->fetch_assoc()){
				echo "<option value='".$row['idCond']."'>".$row['txtCond']."</option>";	
			}	
		}
		$res->close();
		$mysqli->check_result();
	}

?>